<%@ include file="/WEB-INF/jsp/include/taglib.jsp" %>

<form action="<c:url value=""/>" method="post">

    <div class="entry">
        <div class="entry-left">
            <img src="/static-images/pic-helmet.gif">
        </div>
        <div class="entry-right">
            <div class="entry-header">
                <fmt:message key="app.ride.edit.header"/>
            </div>
            <div class="entry-data">
                <div style="float:right; width: 150px; border: 1px dashed gray; margin-top: 2px;">
                    <c:out value="${calendar.rendered}" escapeXml="false"/>
                </div>
                <fmt:formatDate value="${date}" pattern="${__applicationConfig.systemDatePatternString}"/>
                <input type="hidden" name="__ride_date"
                       value="<fmt:formatDate value="${date}" pattern="${__applicationConfig.systemDatePatternString}"/>"/>
            </div>
            <div class="entry-text">
                <fmt:message key="app.ride.name"/>
                <spring:bind path="command.header">
                    <input class="input-text" type="text" name="${status.expression}" value="${status.value}"/>
                </spring:bind>
            </div>
            <br/>
            <div class="entry-data" style="text-align: left;">
                <fmt:message key="app.ride.description"/>
                <spring:bind path="command.text">
                    <textarea class="input-text" style="width:100%;" name="${status.expression}" cols="25" rows="10">${status.value}</textarea>
                </spring:bind>
            </div>
            <div style="text-align:right;">
                <input type="submit" name="submit" value="<fmt:message key="app.ride.edit.submit"/>"/>
            </div>
        </div>
    </div>

</form>
